﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.HVAC
{
	[Transaction(TransactionMode.Manual)]
	public class cmdCount : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string messages, ElementSet elements)
		{
			UIApplication application = commandData.Application;
			Document document = application.ActiveUIDocument.Document;
			Selection selection = application.ActiveUIDocument.Selection;
			new FrmCount(commandData, messages, elements).Show();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
